<?php 
$page_title="Adopters";
require_once('../auth/auth.php');
include('templates/header.php'); 
?>

<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><i class="icon-user"></i> Adoptive Users</h2>
						<div class="box-icon">
							<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
							<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
						</div>
					</div>
						
					<div class="box-content">
<!--								<a id="btnAddNewRow" class="btn btn-success" data-toggle="modal" href="#userNewModal"><i class="icon-user icon-white"></i> New</a>      	-->						
<!--								<a id="btnEditRow"class="btn btn-info table-action-EditUser" href="#"><i class="icon-edit icon-white"></i> Edit</a>      -->
								<a id="btnDeleteRow" class="btn btn-danger" href="#"><i class="icon-trash icon-white"></i> Delete</a>      
								<br/ ><br/ >
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
								  <th>User ID</th>
								  <th>Name</th>		
								  <th>Zipcode</th>
								  <th># Adults</th>
								  <th># Children</th>
								  <th>Toy</th>			  
								  <th>Delivery</th>			  								  								  			  
								  <th>Spanish</th>
								  <th>Matched Family</th>				  								  								  			  								  				  								  								  			  
								  <th>Action</th>
							  </tr>
						  </thead>   
						  <tbody>
													  
							<?php 
							
							include 'db/AdoptersTable.php';
						?>      
                        </tbody> 
                        </table>
                        
<!--                        			                . "<span class=\"label label-".$label_type."\">".$user_status."</span>"-->
						
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
			

			
<form id="formEditUser" action="db/UpdateUser.php" title="User Account Information">
		
   <div class="control-group">
      <label class="control-label" for="first_name">First Name</label>
      <div class="controls">
        <input type="text" class="input-xlarge" name="first_name" id="first_name" rel="0">
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="last_name">Last Name</label>
      <div class="controls">
        <input type="text" class="input-xlarge" name="last_name" id="last_name" rel="1">
      </div>
    </div>   
    	<div class="control-group">
	  <label class="control-label" for="created_on">Created On</label>
	  <div class="controls">
		<input type="text" class="input-xlarge" name="created_on" id="created_on" rel="2" readonly>
	  </div>
	</div>
 		<div class="control-group">
			<label class="control-label" for="userType">User Type</label>
			<div class="controls">
			  <select id="userType" name="userType" rel="3">
					<option>Administrator</option>
					<option>Volunteer</option>
					<option>Adoptive Family</option>
			  </select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="activeStatus">Status</label>
			<div class="controls">
			  <select id="activeStatus" name="activeStatus" rel="4">
					<option>Active</option>
					<option>Pending</option>
					<option>Banned</option>
			  </select>
			</div>
		</div>
	<div class="control-group">
      <div class="controls">
        <input id="user_id" name="user_id" type="hidden" value=''>
      </div>
    </div>	
       
       
		<div style="text-align: right">
			<button id="formEditDataOk" class="btn btn-primary" type="submit">Save Changes</button>
		</div>
</form>		

		<!-- EXAMPLE POP UP FOR SETTINGS-->
<div class="modal hide fade" id="dataConfirmModal">
		<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">×</button>
				<h3>New User</h3>
			</div>
			<div class="modal-body">
				<p>Test...</p>
			</div>
			<div class="modal-footer">
				<a href="#" class="btn" data-dismiss="modal">Close</a>
				<a href="#" class="btn btn-primary">Save changes</a>
			</div>
		</div>

<?php include('templates/footer.php'); ?>
